#
# Copyright 2019 ZetaSQL Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

load("//javatests/com/google/zetasql:junit_test_suites.bzl", "junit_test_suites")

# Tests for ZetaSQL resolvedast classes.
package(
    default_testonly = 1,
    default_visibility = ["//:__subpackages__"],
)

java_library(
    name = "tests",
    srcs = glob(["*.java"]),
    deps = [
        "//java/com/google/zetasql:client",
        "//java/com/google/zetasql:testaccess",
        "//java/com/google/zetasql:types",
        "//java/com/google/zetasql/resolvedast",
        "//javatests/com/google/zetasql:util",
        "//zetasql/proto:function_java_proto",
        "//zetasql/public:function_java_proto",
        "//zetasql/public:type_proto_java_proto",
        "//zetasql/public:value_java_proto",
        "//zetasql/resolved_ast:serialization_java_proto",
        "@com_google_guava_guava//jar",
        "@com_google_truth_truth//jar",
        "@junit_junit//jar",
    ],
)

junit_test_suites(
    name = "gen_tests",
    deps = [":tests"],
)
